package com.java.decorator;

public class DecoratorPatternDemo {
    public static void main(String[] args) {
        Shape circle=new Circle();

        Shape redCircle=new RedShapeDecorator(new Circle());
        Shape redRectangle=new RedShapeDecorator(new Retangle());
        System.out.println("Circle with normal border");
        circle.draw();

        System.out.println("\n Circle of red border");
        redCircle.draw();

        System.out.println("\n Rectangle of red border");
        redRectangle.draw();
    }
}
